﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsGL.OpenGL;
namespace testyOpenCV
{
	public class Cuboid
	{
		/*
		public static float scaleXY = 0.2f;
		public static float scaleZ =	2.0f;
		public static float side = 0.3f;
		public int x = 0;
		public int y = 0;
		public int z = 0;
		public class Vertex
		{
			public float x = 0.0f;
			public float y = 0.0f;
			public float z = 0.0f;
		}
		
		public Vertex[] vertexes = new Vertex[8];
		
		public Cuboid(int xVal, int yVal, int zVal)
		{
			x = xVal-1; y = yVal-1; z = zVal;

			vertexes[0].x = (x * Cuboid.scaleXY + Cuboid.scaleXY);
			vertexes[0].y = (-y * Cuboid.scaleXY - Cuboid.scaleXY);
			vertexes[0].z = 0;

			vertexes[1].x = (x * Cuboid.scaleXY);
			vertexes[1].y = (-y * Cuboid.scaleXY - Cuboid.scaleXY);
			vertexes[1].z = 0;

			vertexes[2].x = (x * Cuboid.scaleXY + Cuboid.scaleXY);
			vertexes[2].y = (-y * Cuboid.scaleXY);
			vertexes[2].z = 0;

			vertexes[3].x = (x * Cuboid.scaleXY);
			vertexes[3].y = (-y * Cuboid.scaleXY);
			vertexes[3].z = z * Cuboid.scaleZ;

			vertexes[4].x = (x * Cuboid.scaleXY + Cuboid.scaleXY);
			vertexes[4].y = (-y * Cuboid.scaleXY - Cuboid.scaleXY);
			vertexes[4].z = z * Cuboid.scaleZ;

			vertexes[5].x = (x * Cuboid.scaleXY);
			vertexes[5].y = (-y * Cuboid.scaleXY - Cuboid.scaleXY);
			vertexes[5].z = z * Cuboid.scaleZ;

			vertexes[6].x = (x * Cuboid.scaleXY + Cuboid.scaleXY);
			vertexes[6].y = (-y * Cuboid.scaleXY);
			vertexes[6].z = z * Cuboid.scaleZ;

			vertexes[7].x = (x * Cuboid.scaleXY);
			vertexes[7].y = (-y * Cuboid.scaleXY);
			vertexes[7].z = z * Cuboid.scaleZ;
		}

		public void draw()
		{
			GL.glBegin(GL.GL_QUADS);

			GL.glColor3f(0.0f, 1.0f, 0.0f);
			GL.glVertex3f(vertexes[0].x, vertexes[0].y, vertexes[0].z);          // Top Right Of The Quad (Bottom) 
			GL.glVertex3f(vertexes[1].x, vertexes[1].y, vertexes[1].z);          // Top Left Of The Quad (Bottom) 
			GL.glVertex3f(vertexes[2].x, vertexes[2].y, vertexes[2].z);          // Bottom Left Of The Quad (Bottom) 
			GL.glVertex3f(vertexes[3].x, vertexes[3].y, vertexes[3].z);          // Bottom Right Of The Quad (Bottom)



			GL.glEnd();
		}
		 */
	}
}
